﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Venta_Automatica.Models.ListarClienteModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ModificarCliente
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Modificar Cliente</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Datos del Cliente</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.dni) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.dni, new Dictionary<string, object>() { { "readonly", "true" } })%>
                <%: Html.ValidationMessageFor(model => model.dni) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Nombres) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombres) %>
                <%: Html.ValidationMessageFor(model => model.Nombres) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.apePat) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.apePat) %>
                <%: Html.ValidationMessageFor(model => model.apePat) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.apeMat) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.apeMat) %>
                <%: Html.ValidationMessageFor(model => model.apeMat) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Tarjeta) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Tarjeta) %>
                <%: Html.ValidationMessageFor(model => model.Tarjeta) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.LineaCredito) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.LineaCredito) %>
                <%: Html.ValidationMessageFor(model => model.LineaCredito) %>
            </div>
            
            <p>
                <input type="submit" value="Guardar" />
            </p>
        </fieldset>

    <% } %>
        <h2><%: ViewData["Message"] %></h2>

    <div>
        <%: Html.ActionLink("Página Principal", "Index", "Home")%> |  
        <%: Html.ActionLink("Regresar Listado", "MantCliente", "Cliente")%>
    </div>


</asp:Content>

